﻿using Core.Domain;
using Core.Dtos;
using AutoMapper;

namespace DI
{
    public static class AutoMapperConfig
    {        
        public static MapperConfiguration CreateMapperConfiguration()
        {
            return new MapperConfiguration(cfg => {
                cfg.CreateMap<Person, PersonDto>();
                cfg.CreateMap<PersonDto, Person>();
            });            
        }
    }
}
